#!/bin/bash
echo "========================================"
echo "   Molecule Scope 测试套件 - Linux/Mac版"
echo "========================================"
echo

# 检查Python是否安装
if ! command -v python3 &> /dev/null; then
    echo "❌ Python3未安装"
    echo "请先安装Python3: https://www.python.org/downloads/"
    exit 1
fi

echo "🚀 开始运行测试..."
echo

# 运行Python测试脚本
python3 run_tests.py

# 检查测试结果
if [ $? -eq 0 ]; then
    echo
    echo "✅ 所有测试通过！可以发布版本。"
    exit 0
else
    echo
    echo "❌ 测试失败，请修复问题后再发布。"
    exit 1
fi